﻿using System;
using System.Collections.Generic;
using CodeCamp.Models.Shared;
using CCM = CodeCamp.Model;

namespace CodeCamp.Models.Sessions
{
    public class SessionListViewModel
    {
        public SessionListViewModel()
        {
            Presenters = new List<SessionPresenters.Presenter>();
            //Tags = new List<TagViewModel>();
        }

        public int Id { get; set; }
        public int SessionStatusId { get; set; }
        public CCM.Session.SessionStatus Status
        {
            get { return CCM.Session.GetSessionStatus(SessionStatusId); }
        }
        public string StatusStr
        {
            get { return CCM.Session.GetSessionStatus(SessionStatusId).ToString(); }
        }
        public DateTime CreatedUTC { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public string DesiredRoomSize { get; set; }
        public List<SessionPresenters.Presenter> Presenters { get; set; }
        //private ICollection<CCM.SessionPresenter> ccSessionPresenters;
        //public ICollection<CCM.SessionPresenter> CCSessionPresenters
        //{
        //    get
        //    {
        //        return ccSessionPresenters;
        //    }
        //    set
        //    {
        //        ccSessionPresenters = value;
        //    }
        //}
        //public List<TagViewModel> Tags { get; set; }
        public string TagsCSV { get; set; }
        //private ICollection<CCM.SessionTag> sessionTags;
        //public ICollection<CCM.SessionTag> SessionTags
        //{
        //    get
        //    {
        //        return sessionTags;
        //    }
        //    set
        //    {
        //        sessionTags = value;
        //    }
        //}
        public string SessionMaterialsUrl { get; set; }
        //public SessionScheduleInfo ScheduleInfo { get; set; }
    }
}